// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero General Public License v3.0.
// See the LICENCE file in the repository root for full licence text.

.user-session-list-session {
  flex-direction: row;
  margin-bottom: 10px;

  &__header {
    .center-content();
    font-size: @font-size--title-small;
    margin-bottom: 5px;
    color: white;
  }

  &__current-badge {
    background: @osu-colour-b6;
    padding: 2px 8px;
    border-radius: 13px;
    color: @osu-colour-f1;
    font-size: 10px;
    text-transform: uppercase;
    margin-left: 5px;
  }

  &__icon {
    width: 20px;
    margin-right: 5px;
  }

  &__details {
    display: flex;
    flex-direction: row;
    flex-grow: 1;
    justify-content: space-between;
    border-bottom: 1px solid @osu-colour-b5;

    @media @desktop {
      align-items: center;
      padding: 0px 5px 10px 5px;
    }

    @media @mobile {
      align-items: flex-start;
      padding: 0px 0px 10px 0px;
      flex-wrap: wrap;
    }
  }

  &__ip {
    .center-content();

    @media @mobile {
      margin-bottom: 5px;
    }
  }

  &__last-active {
    color: @osu-colour-f1;

    @media @desktop {
      width: 50%;
      padding-left: 20px;
    }
    @media @mobile {
      margin-bottom: 5px;
      flex-basis: 100%;
    }
  }

  &__logout {
    .reset-input();
    .link-inverted();

    flex-shrink: 0;
    margin-right: 5px;

    @media @mobile {
      margin-bottom: 5px;
      align-self: flex-end;
    }
  }

  &__logout-icon {
    margin-left: 5px;
  }
}
